package yl.hs.bmipfull.pojo.equipment;

import lombok.Data;
import lombok.EqualsAndHashCode;
import yl.hs.bmipfull.pojo.BaseEntity;
import org.springframework.lang.Nullable;
import yl.hs.bmipfull.annotations.DBField;
import yl.hs.bmipfull.annotations.DBTable;

import java.math.BigDecimal;

import java.util.Date;

/**
 * @apiNote  巡检报告实体类
 * @since 2022年11月25日 16时58分36秒
 * @author 韩纪旺
 */
@EqualsAndHashCode(callSuper = true)
@DBTable(disName = "巡检报告", mapCode = "inspection_report")
@Data
public class InspectionReportEntity extends BaseEntity{

        private Long id;
        @DBField(isSerialNumber = true,disName = "编号", snPrefix = "INRT",mapCode = "sn")
        private String sn;
        @DBField(disName = "巡检区域",mapCode = "equipmentName")
        private String inspection;
        @DBField(disName = "巡检时间",mapCode = "inspectionTime")
        private Date inspectionTime;
        @DBField(disName = "巡检人编号",mapCode = "inspectionUserName")
        private String inspectionUserSN;
        @DBField(disName = "巡检人",mapCode = "inspectionUserName")
        private String inspectionUserName;
        @DBField(disName = "巡检状态",mapCode = "inspectionState")
        private String inspectionState;
        @DBField(disName = "巡检描述",mapCode = "inspectionDesc")
        private String inspectionDesc;
        @DBField(disName = "处理状态",mapCode = "processState")
        private int processState;
        @DBField(disName = "整改要求",mapCode = "reorganize")
        private String reorganize;
        private String inspectionImages;
        private String processorSN;
        @DBField(disName = "处理人",mapCode = "processorName")
        private String processorName;
        @DBField(disName = "处理时间",mapCode = "processTime")
        private Date processTime;
        @DBField(disName = "整改状态",mapCode = "reorganizeState")
        private int reorganizeState;
        @DBField(disName = "整改结果",mapCode = "reorganizeResult")
        private String reorganizeResult;
        private String reorganizeImage;
        @DBField(disName = "备注",mapCode = "remark")
        private String remark;
        private int state;
        @DBField(disName = "巡检类别",mapCode = "inspectionCategory")
        private String inspectionCategory;
        @DBField(disName = "巡检区域编号",mapCode = "inspectionSN")
        private String inspectionSN;
        }